package com.wangshidai.entity.ztree;

import com.wangshidai.util.ztree.Treeable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode implements Treeable {
    private Integer id;
    private Integer parentId;
    private String parentName;
    private String code;
    private Integer type;
    private String icon;
    private String name;
    private String path;
    private String label;
    private String url;
    private Integer orderNum;
    private Boolean open;
    private List<TreeNode> children;


    @Override
    public void setChildren(List children) {
        this.children = children;
    }
}
